
#include "CDSF_Configs_Control.h"
#include "CDSF_Configs_Constants.h"
#include "../CASF/CDSF_Control.h"

#include "../Devices/Device_MFK.h"

extern int controlKeyCode;

SFInjection SFCode SFControlReadKey(SFScreenId screenId, SFKeyCode *keyCode){
	if(screenId!=0)
		return SFCodeNoData;
	
	if(!controlKeyCode)
		return SFCodeNoData;
	
	*keyCode = controlKeyCode;
	controlKeyCode = 0;
	
	return SFCodeOK;
}

SFInjection SFCode SFControlReadInputString(SFScreenId screenId, const char **cString, SFInputStringMode *mode){
	return MFKReadInputString(screenId, cString, mode);
}

